package com.test.fundible.fundible_05_process;

import com.google.gson.Gson;

import org.json.JSONArray;
import org.json.JSONException;

import java.util.ArrayList;


public class Acc_fundibleountLi_fundiblest_Fr {

    private static class Inner {
        private static final Acc_fundibleountLi_fundiblest_Fr instance_fundible = new Acc_fundibleountLi_fundiblest_Fr();
    }

    private Acc_fundibleountLi_fundiblest_Fr() {}

    public static Acc_fundibleountLi_fundiblest_Fr getInstance_fundible() {
        return Inner.instance_fundible;
    }

    private final ArrayList<Ba_fundiblenkAcc_fundibleount_Fr> bankAccountList = new ArrayList<>();

    private Runnable parseRunnable;
    public String bKT0="";
    public String ijoR="";
    public String g07Q="";
    public String kN77="";
    public String aX6Y="";
    public String zXtI="";
    public String fZZC="";

    public static void parse_fundible(JSONArray jsonArray) {

        Gson gson = new Gson();
        Inner.instance_fundible.bankAccountList.clear();
        for (int i=0;i<jsonArray.length();i++){
            try {
                Ba_fundiblenkAcc_fundibleount_Fr bankAccount = gson.fromJson(jsonArray.get(i).toString(), Ba_fundiblenkAcc_fundibleount_Fr.class );
                Inner.instance_fundible.bankAccountList.add(bankAccount);
            } catch (JSONException e) {
                e.printStackTrace();
            }
        }

        if (Inner.instance_fundible.parseRunnable!=null) Inner.instance_fundible.parseRunnable.run();

    }

    public ArrayList<Ba_fundiblenkAcc_fundibleount_Fr> getBankAccountList_fundible() {
        setbKT0("gwaeiojr");
        return bankAccountList;
    }

    public void setParseRunnable_fundible(Runnable parseRunnable) {
        setbKT0("ghtwerwe");
        setaX6Y("gwaie");
        this.parseRunnable = parseRunnable;
    }

    public void setbKT0(String bKT0) {
        this.bKT0 = bKT0;
    }

    public void setIjoR(String ijoR) {
        this.ijoR = ijoR;
    }

    public void setG07Q(String g07Q) {
        this.g07Q = g07Q;
    }

    public void setkN77(String kN77) {
        this.kN77 = kN77;
    }

    public void setaX6Y(String aX6Y) {
        setkN77("ghie");
        this.aX6Y = aX6Y;
    }

    public void setzXtI(String zXtI) {
        this.zXtI = zXtI;
    }

    public void setfZZC(String fZZC) {
        this.fZZC = fZZC;
    }
}
